home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d14 / dlchk11.arc / SETERR.DOC < prev    next >
Text File  |  1991-04-28  |  649b  |  25 lines

  1.                  Documentation for
  2.                 SETERR.EXE
  3.                   by Duane Paulson
  4.  
  5. A batch file enhancer for those who occasionally run one batch file out of
  6. another batch file.
  7.  
  8. SETERR sets the DOS errorlevel to any value between 0 and 255.
  9.  
  10. Examples:
  11.  
  12.     seterr 0<cr>        Sets the DOS errorlevel to 0.
  13.  
  14.     seterr 10<cr>        Sets the DOS errorlevel to 10.
  15.  
  16.     seterr 255<cr>      Sets the DOS errorlevel 10 255.
  17.  
  18. Negative numbers are not allowed, and will be converted to positive numbers.
  19.  
  20. Suggestions for use:
  21.  
  22. Use with a batch file called by another batch file to return an errorlevel
  23. to the first batch file for conditional processing.
  24.  
  25.